package com.dudy.chain;

/**
 * @program: zhuguangDemo
 * @description: ${description}
 * @author: dudy
 * @create: 2018-04-05 21:06
 **/
public class JiangXi extends AbstractProvince {
    private static String type = "jiangxi";
    @Override
    public void todo(String type) {
        if (type.equals(JiangXi.type)) {
            System.out.println("jiangxi");
        } else {
            if (province != null) {
                province.todo(type);
            } else {
                super.todo(type);
            }
        }
    }
}
